package com.example.greenshuttle;

import java.util.Calendar;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.WindowManager;
import android.widget.TextView;

public class Chattuijian extends Activity {

	private TextView mChoice;
	private CharSequence Cmeal;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.chat_tuijian);
		// ����activityʱ���Զ����������
		getWindow().setSoftInputMode(
				WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);

		mChoice = (TextView) findViewById(R.id.text_tuijian);

		initData();
		mChoice.setText(Cmeal);
	}

	private void initData() {
		switch (tuijishu(5)) {
		case 0:
			Cmeal = "��~����ȥ��ʳ�ð�~";
			break;
		case 1:
			Cmeal = "ŭ���������ţ����棡";
			break;
		case 2:
			Cmeal = "�þ�û�����з���~";
			break;
		case 3:
			Cmeal = "������Ѫ����������";
			break;
		case 4:
			Cmeal = "����fighting,����ͺ�ˮ��";
			break;

		}

	}

	private int tuijishu(int sum) {
		Calendar c = Calendar.getInstance();
		int day = c.get(Calendar.DAY_OF_MONTH);

		return day % sum;
	}

	public void chat_btn_back(View v) {
		this.finish();
	}

}
